package net.xdclass.service;

import net.xdclass.enums.CouponCategoryEnum;
import net.xdclass.model.CouponDO;
import com.baomidou.mybatisplus.extension.service.IService;
import net.xdclass.request.NewUserCouponRequest;
import net.xdclass.util.JsonData;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author guangyang
 * @since 2023-02-22
 */

public interface CouponService {
    /**
     * 分页查询优惠券
     */
    Map<String,Object> pageCouponActivity(int size, int page);
    /**
     * 领取优惠券
     * @param couponId
     * @return
     */
    JsonData addCoupon(long couponId, CouponCategoryEnum promotion);

    /**
     * 为新人添加优惠券
     * @param newUserCouponRequest
     * @return
     */
    JsonData initNewUserCoupon(NewUserCouponRequest newUserCouponRequest);
}
